home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / LunarLander.swf / scripts / frame_4 / PlaceObject2_77_25 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Encoding:
Text File  |  2006-06-13  |  254 b   |  10 lines

  1. onClipEvent(enterFrame){
  2.    fuel = _root.lander.fuel;
  3.    hval = fuel - fuel % 100;
  4.    h.gotoAndStop(hval / 100 + 1);
  5.    tval = fuel - hval - fuel % 10;
  6.    t.gotoAndStop(tval / 10 + 1);
  7.    uval = fuel - hval - tval;
  8.    u.gotoAndStop(uval + 1);
  9. }
  10.